package com.jic.member.service.power;

import java.lang.Long;
import java.util.List;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.member.entity.power.MememberLegalRule;
import com.jic.member.request.power.MememberLegalRuleRequest;
import com.jic.member.response.power.MememberLegalRuleResponse;

/**
* 会员等级管理-权益规则主表
* @author : 
* @email : 
* @since : 2020-04-02 07:48:26
* @version : v1.0.0
*/
public interface MememberLegalRuleService {

    long insert(MememberLegalRule mememberLegalRule);

    long delete(Long legalRuleId);

    long update(MememberLegalRule mememberLegalRule);

    MememberLegalRule queryByPrimaryKey(Long legalRuleId);

    List<MememberLegalRule> query(MememberLegalRule mememberLegalRule);

    PageResult<MememberLegalRule> queryPage(MememberLegalRule mememberLegalRule, Page pageQuery);


    RestResult<Long> insertMemberLegal(MememberLegalRuleRequest form);

    MememberLegalRuleResponse queryMemberPowerInfo(MememberLegalRuleRequest form);

    RestResult<Long> deletMemberInfo(MememberLegalRuleRequest form);

    RestResult editMemberPowerInfo(MememberLegalRuleRequest form);

    PageResult<MememberLegalRule> queryStoreMemberLegalRuleList(MememberLegalRule memberRequest, Page page);
}